package com.bosi.message.impl.test;

import io.lettuce.core.RedisClient;
import io.lettuce.core.api.StatefulRedisConnection;

public class RedisConfig {
    private static final RedisClient client;
    static {
        client = RedisClient.create("redis://192.168.56.103:6379/0");
    }

    public static RedisClient getRedisClient(){
        return client;
    }

    public static StatefulRedisConnection<String, String> connect(){
         return client.connect();
    }
}
